import {useLayoutEffect, useState} from "react";
import { invoke } from "@tauri-apps/api/core";

import Calendar from "./calendar/index.tsx";
import { ConfigProvider } from 'antd';
import dayjs from 'dayjs'
import locale from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import "./App.css";


function App() {
    useLayoutEffect(() => {
        dayjs.locale('zh-cn');
    });

  return (
    <main className="container">
        <ConfigProvider locale={locale}>
            <Calendar/>
        </ConfigProvider>
    </main>
  );
}

export default App;
